from name_function import get_formatted_name

print("输入'q'结束程序")
while True:
    first = input("\n您的姓氏:")
    if first == 'q':
        break
    last = input("您的名:")
    if last == 'q':
        break

    formatted_name=get_formatted_name(first,last)
    print(f"\t您的完整姓名:{formatted_name}")